package DBLayer;

import java.util.ArrayList;

import ModelLayer.SalesOrder;


public interface IFDBSalesOrder {
	
    // get all orders
    public ArrayList<SalesOrder> getAllSalesOrders(boolean retriveAssociation);
    //get one sales order according to id
    public SalesOrder findSalesOrder(int saleID, boolean retriveAssociation);
 
  
    //insert a new sales order
    public int insertSalesOrder(SalesOrder order) throws Exception;
    //update information about an order
    public int updateSalesOrder(SalesOrder order);
    public int delete(SalesOrder salesOrder);

}
